{literal}{if ${/literal}{$show}{literal}}
<select name="{$name}">
<option value="${/literal}{$noselection}{literal}">{/literal}{$noselectionvalue}{literal}</option>

{literal}{if ({/literal}{$selectedcond}{literal})}{/literal}
<option value="{literal}{${/literal}{$item}{literal}->{/literal}{$optvalue}{literal}}{/literal}" selected="selected">{literal}{${/literal}{$item}{literal}->{/literal}{$caption}{literal}}{/literal}</option>
{literal}{else}{/literal}
<option value="{literal}{${/literal}{$item}{literal}->{/literal}{$optvalue}{literal}}{/literal}">{literal}{${/literal}{$item}{literal}->{/literal}{$caption}{literal}}{/literal}</option>
{literal}{/if}{/literal}
{literal}{/foreach}{/literal}
</select>
{literal}{/if}{/literal}